﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUEnterPriseSpaceLeft.ascx.cs"
    Inherits="NJL.Web.Controls.WUEnterPriseSpaceLeft" %>
    <%
        if (UserId == "" || UserName == "")
        {
     %>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            //示例9，综合效果
            var dingpiao = new PopupLayer({ trigger: "#opendingpiao", popupBlk: "#blk9dingpiao", closeBtn: "#close9dingpiao", useOverlay: true, useFx: true,
                offsets: {
                    x: 0,
                    y: -41
                }
            });
            dingpiao.doEffects = function (way) {
                if (way == "open") {
                    this.popupLayer.css({ opacity: 0.3 }).show(400, function () {
                        this.popupLayer.animate({
                            left: ($(document).width() - this.popupLayer.width()) / 2,
                            top: (document.documentElement.clientHeight - this.popupLayer.height()) / 2 + $(document).scrollTop(),
                            opacity: 0.8
                        }, 1000, function () { this.popupLayer.css("opacity", 1) } .binding(this));
                    } .binding(this));
                    document.getElementById('Logindingpiao').src = '<%=WEBSITE_USRE_DOMAIN %>/SecondLogin.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=Request.RawUrl %>';
                }
                else {
                    this.popupLayer.animate({
                        left: this.trigger.offset().left,
                        top: this.trigger.offset().top,
                        opacity: 0.1
                    }, { duration: 500, complete: function () { this.popupLayer.css("opacity", 1); this.popupLayer.hide() } .binding(this) });
                }
            }

        });
    </script>
             <div id="blk9dingpiao" class="blk">
            <div class="popup_title">
                <span class="float_r"><a href="javascript:void(0)" id="close9dingpiao">关闭</a></span>
                <ul>
                    <li class="now">
                        <a target="main">登录</a>
                    </li>
                </ul>
            </div>
            <div>
                <iframe id="Logindingpiao"  name="main" width="500"
                    height="420" style="overflow:hidden; border:none;"></iframe>
            </div>
        </div>
        <%} %>
    <script type="text/javascript">
        var collection = function (collectionId) {
            $.ajax({
                type: 'get',
                url: '/Handle/Handler.ashx',
                data: 'collection=' + collectionId + '&collType=1&Random=' + Math.random(),
                dataType: 'text',
                success: function (msg) {
                    if (msg == "NoSession") {
                        alert("请登录后再操作");
                        window.location.href = '/Login.aspx?url=' + document.location.href;
                    }
                    else if (msg == "False") {
                        alert("您已经关注过");
                    }
                    else {
                        alert(" 关注成功啦，您是我们这儿第 " + msg + " 关注者，有时间就过来坐坐吧。点确定继续参观~");
                    }

                },
                error: function () {
                    alert("评论失败");
                }
            })
        }
    </script>
<div class="w_258 leftside float_l cont">
    <!--图片-->
    <div>
        <p class="center">
            <a href="/shangpu/<%=Request.QueryString["id"] %>-index.html">
                <asp:Image ID="Image1" runat="server" Width="210px" Height="158px"  CssClass="picBor" BorderWidth="1"/>
            </a>
        </p>
    </div>
    <!--授权图标-->
    <div class="shop-promise">
        <p>
            <span class="zhenggray">诚信认证</span> <span class="shougray">预订授权</span> <span class="zhigray">相关资质</span>
        </p>
    </div>
    <!--门票预订-->
    <div class="blank">
    </div>
    <div class="leftBor">
        <h2>
            预订信息</h2>
        <div>
            <table class="tab" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <th>
                        类型
                    </th>
                    <th>
                        门市价
                    </th>
                    <th>
                        本店价
                    </th>
                    <th>
                        支付方式
                    </th>
                </tr>
                <%
                    for (int i = 0; i < LIST_BOOK.Count; i++)
                    {
                %>
                <tr>
                    <td>
                        <a href='/CompanyOrder.aspx?id=<%=Request.QueryString["id"] %>&bid=<%=LIST_BOOK[i].ID %>' style='color: #195CB5'
                            title='<%=LIST_BOOK[i].BOOK_NAME %>'><%=LIST_BOOK[i].BOOK_NAME %></a>
                    </td>
                    <td>
                        <del>¥<%=LIST_BOOK[i].MARKET_PRICE.Value.ToString("#") %></del>
                    </td>
                    <td>
                        <span class="orange">¥<%=LIST_BOOK[i].LOCAL_PRICE.Value.ToString("#") %></span>
                    </td>
                    <td>
                      <span> <%=GetBookPayType(LIST_BOOK[i].NJL_CS_BOOK_PAY_TYPE_CODE)%><a id="opendingpiao" <%if(UserId!=""){Response.Write("href=\"/CompanyOrder.aspx?id="+Request.QueryString["id"]+"&bid="+LIST_BOOK[i].ID+"\"");}%> target="_blank" class="ding02"></a></span>
                    </td>
                </tr>
                <%
                    }
                %>
            </table>
        </div>
    </div>
    <!--
    <div class="blank">
    </div>
    <div class="leftBor">
        <h2>
            住宿预订</h2>
        <div>
            <table class="tab" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <th>
                        类型
                    </th>
                    <th>
                        门市价
                    </th>
                    <th>
                        本店价
                    </th>
                    <th>
                        支付方式
                    </th>
                </tr>
                <tr>
                    <td>
                        成人票
                    </td>
                    <td>
                        <del>180元</del>
                    </td>
                    <td>
                        <span class="orange">100元</span>
                    </td>
                    <td>
                        景点支付<span class="operate"><a href="#" class="ding"></a></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        儿童票
                    </td>
                    <td>
                        <del>120元</del>
                    </td>
                    <td>
                        <span class="orange">60元</span>
                    </td>
                    <td>
                        景点支付<span class="operate"><a href="#" class="ding"></a></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        学生票
                    </td>
                    <td>
                        <del>120元</del>
                    </td>
                    <td>
                        <span class="orange">60元</span>
                    </td>
                    <td>
                        景点支付<span class="operate"><a href="#" class="ding"></a></span>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="blank">
    </div>
    <div class="leftBor">
        <h2>
            会议预订</h2>
        <div>
            <table class="tab" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <th>
                        类型
                    </th>
                    <th>
                        门市价
                    </th>
                    <th>
                        本店价
                    </th>
                    <th>
                        支付方式
                    </th>
                </tr>
                <tr>
                    <td>
                        大会议室
                    </td>
                    <td>
                        <del>180元</del>
                    </td>
                    <td>
                        <span class="orange">100元</span>
                    </td>
                    <td>
                        景点支付<span class="operate"><a href="#" class="ding"></a></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        中小型
                    </td>
                    <td>
                        <del>120元</del>
                    </td>
                    <td>
                        <span class="orange">60元</span>
                    </td>
                    <td>
                        景点支付<span class="operate"><a href="#" class="ding"></a></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        小会议室
                    </td>
                    <td>
                        <del>120元</del>
                    </td>
                    <td>
                        <span class="orange">60元</span>
                    </td>
                    <td>
                        景点支付<span class="operate"><a href="#" class="ding"></a></span>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    -->
    <!--交通指南-->
    <div class="blank">
    </div>
    <div class="box">
        <div class="titlenews">
            <h2>
                交通指南</h2>
        </div>
        <div class="leftcont">
            <script type='text/javascript' src='http://api.map.baidu.com/api?v=1.2' ></script>
            <div id="container" style='width: 254px; height: 300px'>
            </div>
            <script type='text/javascript'>
                var map = new BMap.Map("container");
                map.centerAndZoom(new BMap.Point(116.404, 39.915), 11);
                // 创建地址解析器实例
                map.addControl(new BMap.NavigationControl());
                map.addControl(new BMap.ScaleControl());
                map.addControl(new BMap.OverviewMapControl());

                var myGeo = new BMap.Geocoder();
                // 将地址解析结果显示在地图上，并调整地图视野
                myGeo.getPoint("<%=modelCompany.ADDRESS %>", function (point) {
                    if (point) {
                        map.centerAndZoom(point, 16);
                        map.addOverlay(new BMap.Marker(point));
                        var opts = {
                            width: 80,     // 信息窗口宽度
                            height: 20,     // 信息窗口高度
                            title: "<%=modelCompany.COMPANY_NAME %>"   // 信息窗口标题
                        }
                        var infoWindow = new BMap.InfoWindow("<%=modelCompany.ADDRESS %>", opts);  // 创建信息窗口对象   
                        map.openInfoWindow(infoWindow, map.getCenter());      // 打开信息窗口  

                    }
                }, "<%=GetAreaName(modelCompany.AREA_CODE) %>");
            </script>
            <div class="cont">
                <p>
                   <asp:Literal ID="litTraffic" runat="server"></asp:Literal></p>
            </div>
        </div>
    </div>
    <!--风向标-->
    <div class="blank" style="display:none">
    </div>
    <div class="box" style="display:none">
        <script type="text/javascript" src="/Scripts/miaov.js"></script>
        <div id="divHotTagIndex">
            <%
                for (int i = 0; i < ArrayTagList.Count; i++)
                {
                    %>
	        <a class="tag<%=(i%5).ToString() %>" target="_blank" href="/SearchList.aspx?key=<%=Server.UrlEncode(ArrayTagList[i].ToString()) %>"><%=ArrayTagList[i].ToString() %></a>
                    <% 
                }
            %>
        </div>
    </div>
    <!--简介-->
    <div class="cleanFlex blank"></div>
    <div class="box">
        <div class="titlenews">
            <span class="float_r">
                <a href="/shangpu/<%=Request.QueryString["id"] %>-about.html">更多</a>
            </span>
            <h2>
                简介
            </h2>
        </div>
        <div class="cont">
            <p>
                <asp:Literal ID="litDescription" runat="server"></asp:Literal>
            </p>
        </div>
    </div>
        
   
</div>
